<template>
	<view class="out">
		子组件count值：{{count}}
	</view>
</template>

<script setup>
import { ref } from 'vue';

const count = ref(100);
const updateCount = function() {
	count.value++;
}
defineExpose({
	count,
	str:"我来测试",
	updateCount
})
</script>

<style>
.out {
	padding: 20px;
	background: darkgoldenrod;
}
</style>